#include <QCoreApplication>
#include <qd.h>

#include <configutil.h>
#include <repoutil.h>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    qd << "repo:" << ConfigUtil::getAppRepoConfig();

    QString dir = "/media/zinface/1T/kernel/prebuilts/jdk/jdk11";
    QString name = "platform/external/stardoc";
    QString path = "external/stardoc";
    qd << RepoUtil::isVerify(dir);
    qd << dir;

    qd << "remote:" << RepoUtil::default_remote(dir);
    qd << "revision:" << RepoUtil::default_revision(dir);
    qd << "count:" << RepoUtil::project_names(dir).count();

    qd << "exists:" << RepoUtil::repo_project_objects_name_exists(dir, name);
    qd << "exists:" << RepoUtil::repo_project_objects_name_config_validated(dir, name);

    qd << "链接完整:" << RepoUtil::repo_projects_path_3rlinks_validated(dir, name, path);
    qd << "需要瘦身:" << RepoUtil::repo_project_objects_name_objects_pack_exists_tmp_pack_file(dir, name);
    return 0;
}
